<%@ Page Title="" Language="C#" MasterPageFile="~/RentAWorkerMaster.master" Inherits="System.Web.Mvc.ViewPage<RentAWorker.DataAccess.Entities.RentalService>" %>

<script runat="server">
    
    protected void Page_PreInit(object sender, EventArgs e)
    {
        if (Session["Theme"] != null)
            this.Theme = Session["Theme"].ToString();
    }
    
</script>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title>Edit</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="RightPlaceholder" runat="server">

    <h2>Edit</h2>

    <%= Html.ValidationSummary() %>

    <% if (ViewData.ModelState.IsValid)
       { %>
            <p><%= TempData["Error"] ?? string.Empty  %></p>
    <% } %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
            <p>
                <label for="StartDate">Start Date:</label>
                <%= Html.TextBox("StartDate") %>
                <%= Html.ValidationMessage("StartDate", "*") %>
            </p>
            <p>
                <label for="EndDate">End Date:</label>
                <%= Html.TextBox("EndDate") %>
                <%= Html.ValidationMessage("EndDate", "*") %>
            </p>
            <p>
                <label for="Cancel">Cancel:</label>
                <%= Html.CheckBox("Cancel") %>
            </p>
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="LeftPlaceholder" runat="server">
</asp:Content>

